from django.conf.urls import url

from . import views_merchants, views_nfc, views_orders, views_users, views_vouchers, views_goods, views_cashbonus, views_activities,views_push_activity_details_data,views_push_data,views_encourage


urlpatterns = [
    #测试
    url(r'^push_details_data/$', views_push_activity_details_data.PushDetailsData.as_view({'get': 'push'})),
    url(r'^push_data/$', views_push_data.PushData.as_view({'get': 'push'})),


    # 商户模块
    url(r'^merchantuser/$', views_merchants.MerchantUserModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantuser/(?P<pk>\d+)/$', views_merchants.MerchantUserModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^merchant_data/$', views_merchants.MerchantUserModelViewSet.as_view({'get': 'merchant_data'})),
    url(r'^luckyactivity/$', views_merchants.LuckyBagActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyactivity/(?P<pk>\d+)/$', views_merchants.LuckyBagActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^luckyactivitydata/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyactivitydata/(?P<pk>\d+)/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_luckyactivitydata/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'export_luckyactivitydata'})),
    url(r'^luckyrecord/$', views_merchants.LuckyBagRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyrecord/(?P<pk>\d+)/$', views_merchants.LuckyBagRecordModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_luckyrecord/$', views_merchants.LuckyBagRecordModelViewSet.as_view({'get': 'export_luckyrecord'})),
    url(r'^merchantenterquest/$', views_merchants.MerchantEnterQuestModelViewSet.as_view({'get': 'list'})),
    url(r'^scoutthestoreleaderboard/$', views_merchants.ScoutTheStoreLeaderboardModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^nfc_trade/$', views_merchants.MerchantNFCDeviceTradeModelViewSet.as_view({'get': 'list'})),
    url(r'^export_nfc_trade/$', views_merchants.MerchantNFCDeviceTradeModelViewSet.as_view({'get': 'export_nfc_trade'})),
    url(r'^merchant/$', views_merchants.MerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/(?P<pk>\d+)/$', views_merchants.MerchantModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^check_merchant/$', views_merchants.MerchantModelViewSet.as_view({'post': 'check_merchant'})),
    url(r'^update_logo/$', views_merchants.MerchantModelViewSet.as_view({'post': 'update_logo'})),
    url(r'^delete_image/$', views_merchants.MerchantModelViewSet.as_view({'post': 'delete_image'})),
    url(r'^enter_level/$', views_merchants.MerchantModelViewSet.as_view({'get': 'enter_level'})),
    url(r'^add_image/$', views_merchants.MerchantModelViewSet.as_view({'post': 'add_image'})),
    url(r'^export_merchant/$', views_merchants.MerchantModelViewSet.as_view({'get': 'export_merchant'})),
    url(r'^is_add_merchant/$', views_merchants.MerchantModelViewSet.as_view({'get': 'is_add_merchant'})),
    url(r'^add_merchant/$', views_merchants.MerchantModelViewSet.as_view({'post': 'add_merchant'})),
    url(r'^open_is_mall/$', views_merchants.MerchantModelViewSet.as_view({'get': 'open_is_mall'})),
    url(r'^confirm_is_mall/$', views_merchants.MerchantModelViewSet.as_view({'post': 'confirm_is_mall'})),
    url(r'^batch_enter_level/$', views_merchants.MerchantModelViewSet.as_view({'post': 'batch_enter_level'})),
    url(r'^update_merchant_channel/$', views_merchants.MerchantModelViewSet.as_view({'post': 'update_merchant_channel'})),
    url(r'^branch_info/$', views_merchants.MerchantModelViewSet.as_view({'get': 'branch_info'})),
    url(r'^monthly_bill/$', views_merchants.MerchantMonthlyBillModelViewSet.as_view({'get': 'list'})),
    url(r'^monthly_bill/(?P<pk>\d+)/$', views_merchants.MerchantMonthlyBillModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^merchantreachactivity/$', views_merchants.MerchantEightEightActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantreachactivity/(?P<pk>\d+)/$', views_merchants.MerchantEightEightActivityModelViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update'})),
    url(r'^add_eighteightactivity_white_table/$', views_merchants.MerchantEightEightActivityModelViewSet.as_view({'post': 'add_eighteightactivity_white_table'})),
    url(r'^merchantreachwhitetable/$', views_merchants.MerchantEightEightWhiteTableModelViewSet.as_view({'get': 'list'})),
    url(r'^export_merchantreachwhitetable/$', views_merchants.MerchantEightEightWhiteTableModelViewSet.as_view({'get': 'export_merchantreachwhitetable'})),
    url(r'^merchantreachordertable/$', views_merchants.MerchantEightEightActivityOrderModelViewSet.as_view({'get': 'list'})),
    url(r'^export_merchantreachordertable/$', views_merchants.MerchantEightEightActivityOrderModelViewSet.as_view({'get': 'export_merchantreachordertable'})),
    url(r'^merchantreachactivityprize/$', views_merchants.MerchantEightEightActivityPrizeModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantreachactivityprize/(?P<pk>\d+)/$', views_merchants.MerchantEightEightActivityPrizeModelViewSet.as_view({'put': 'update'})),
    #商户达标-客管推送记录
    url(r'^merchanteighteightdrawKeguan/$',views_merchants.MerchantEightEightDrawKeguanModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcodevisit/$', views_merchants.MerchantBusinessQRCodeVisitModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcode/$', views_merchants.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcode/(?P<pk>\d+)/$', views_merchants.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_merchantbusinessqrcode/$', views_merchants.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'export_merchantbusinessqrcode'})),
    url(r'^merchanteightdraw/$', views_merchants.MerchantEightEightDrawModelViewSet.as_view({'get': 'list'})),
    url(r'^merchanteightdraw/(?P<pk>\d+)/$', views_merchants.MerchantEightEightDrawModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_merchanteightdraw/$', views_merchants.MerchantEightEightDrawModelViewSet.as_view({'get': 'export_merchanteightdraw'})),
    url(r'^bill/$', views_merchants.MerchantBillModelViewSet.as_view({'get': 'list'})),
    url(r'^bill/(?P<pk>\d+)/$', views_merchants.MerchantBillModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_merchant_bill/$', views_merchants.MerchantBillModelViewSet.as_view({'get': 'export_merchant_bill'})),
    url(r'^synch_trading/$', views_merchants.MerchantBillModelViewSet.as_view({'post': 'synch_trading'})),
    url(r'^businesscategory/$', views_merchants.MerchantBusinessCategoryModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentactivity/$', views_merchants.WaivePaymentActivityModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^waivepaymentactivity/(?P<pk>\d+)/$', views_merchants.WaivePaymentActivityModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    #月月邮免单-客管推送
    url(r'^waivepaymentactivitydatakeguan/$', views_merchants.WaivePaymentActivityDataKeguanModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentadvance/$', views_merchants.WaivePaymentAdvanceModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentadvance/(?P<pk>\d+)/$', views_merchants.WaivePaymentAdvanceModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^waivepaymentmerchant/$', views_merchants.WaivePaymentMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentmerchant/(?P<pk>\d+)/$', views_merchants.WaivePaymentMerchantModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_waivepaymentmerchant/$', views_merchants.WaivePaymentMerchantModelViewSet.as_view({'get': 'export_waivepaymentmerchant'})),
    url(r'^waivepaymentorder/$', views_merchants.WaivePaymentOrderModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentorder/(?P<pk>\d+)/$', views_merchants.WaivePaymentOrderModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_waivepaymentorder/$', views_merchants.WaivePaymentOrderModelViewSet.as_view({'get': 'export_waivepaymentorder'})),
    url(r'^settlementrecord/(?P<pk>\d+)/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^settlementrecord/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^export_settlementrecord/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'get': 'export_settlementrecord'})),
    url(r'^synchronization_settlementrecord/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'post': 'synchronization_settlementrecord'})),
    url(r'^statistical_settlement/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'get': 'statistical_settlement'})),
    url(r'^export_statistical_settlement/$', views_merchants.MerchantSettlementRecordModelViewSet.as_view({'get': 'export_statistical_settlement'})),
    url(r'^bank_qrcode_quest/$', views_merchants.MerchantBankQRCodeQuestModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^bank_qrcode/$', views_merchants.MerchantBankQRCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^bank_qrcode/(?P<pk>\d+)/$', views_merchants.MerchantBankQRCodeModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_bankqrcode/$', views_merchants.MerchantBankQRCodeModelViewSet.as_view({'get': 'export_bankqrcode'})),
    url(r'^bank_qrcode_data/$', views_merchants.MerchantBankQRCodeBindDataModelViewSet.as_view({'get': 'list'})),
    url(r'^export_bankqrcodedata/$', views_merchants.MerchantBankQRCodeBindDataModelViewSet.as_view({'get': 'export_bankqrcodedata'})),
    url(r'^bank_qrcode_statistics/$', views_merchants.MerchantBankQPCodeStatisticsModelViewSet.as_view({'get': 'list'})),
    url(r'^export_bankqrcodestatistics/$', views_merchants.MerchantBankQPCodeStatisticsModelViewSet.as_view({'get': 'export_bankqrcodestatistics'})),

    # 支付宝碰一下NFC模块
    url(r'^nfc_device/$', views_nfc.NFCDeviceModelViewSet.as_view({'get': 'list'})),
    url(r'^nfc_device/(?P<pk>\d+)/$', views_nfc.NFCDeviceModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^nfc_quest/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'get': 'list'})),
    url(r'^nfc_quest/(?P<pk>\d+)/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^nfc_schedule/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'get': 'list'})),
    url(r'^nfc_schedule/(?P<pk>\d+)/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^nfc_trade_tree/$', views_nfc.MerchantNFCDeviceTradeModelViewSet.as_view({'get': 'nfc_trade_tree'})),

    # 订单模块
    url(r'^order_info/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^order_info/(?P<pk>\d+)/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^export_orderinfo/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'export_orderinfo'})),
    url(r'^synchronization_garbage_data/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'synchronization_garbage_data'})),
    url(r'^synchronization_garbage_order/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'synchronization_garbage_order'})),
    url(r'^update_fund_trans/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'update_fund_trans'})),
    url(r'^statistical_order_date/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'statistical_order_date'})),
    url(r'^export_statistical_order_date/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'export_statistical_order_date'})),
    url(r'^statistical_order_level/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'statistical_order_level'})),
    url(r'^export_statistical_order_level/$', views_orders.OrderInfoModelViewSet.as_view({'get': 'export_statistical_order_level'})),
    url(r'^add_express/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'add_express'})),
    url(r'^delete_express/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'delete_express'})),
    url(r'^refund_order/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'refund_order'})),
    url(r'^batch_add_express/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'batch_add_express'})),
    url(r'^receive_goods/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'receive_goods'})),
    url(r'^update_orderaddress/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'update_orderaddress'})),
    url(r'^use_coupon/$', views_orders.OrderInfoModelViewSet.as_view({'post': 'use_coupon'})),
    url(r'^group_order_info/$', views_orders.OrderInfoGROUPModelViewSet.as_view({'get': 'list'})),
    url(r'^group_order_info/(?P<pk>\d+)/$', views_orders.OrderInfoGROUPModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^schengle_order_info/$', views_orders.OrderSchengleModelViewSet.as_view({'get': 'list'})),
    url(r'^schengle_order_info/(?P<pk>\d+)/$', views_orders.OrderSchengleModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^order_advance/$', views_orders.OrderAdvanceModelViewSet.as_view({'get': 'list'})),
    url(r'^ysharea/$', views_orders.YSHAreaCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^yshcontract/$', views_orders.YSHContractModelViewSet.as_view({'get': 'list'})),
    url(r'^express/$', views_orders.ExpressModelViewSet.as_view({'get': 'list'})),
    url(r'^express/(?P<pk>\d+)/$', views_orders.ExpressModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_express/$', views_orders.ExpressModelViewSet.as_view({'get': 'export_express'})),
    url(r'^applicationform/(?P<pk>\d+)/$', views_orders.AfterSaleApplicationFormModelViewSet.as_view({'put': 'update'})),
    url(r'^express_quest/$', views_orders.ExpressQuestModelViewSet.as_view({'get': 'list'})),
    url(r'^expresstype/$', views_orders.ExpressTypeModelViewSet.as_view({'get': 'list'})),
    url(r'^choices_expresstype/$', views_orders.ExpressTypeModelViewSet.as_view({'get': 'choices_expresstype'})),
    url(r'^syn_express/$', views_orders.ExpressTypeModelViewSet.as_view({'get': 'syn_express'})),

    # 用户模块
    url(r'^login/$', views_users.UserLoginView.as_view()),
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views_users.SmsCodeView.as_view(), name='sms_codes'),
    url(r'^info/$', views_users.UserModelViewSet.as_view({'get': 'info'})),
    url(r'^aaaa/$', views_users.UserModelViewSet.as_view({'get': 'aaaa'})),
    url(r'^wxpay_cookie/$', views_users.UserModelViewSet.as_view({'get': 'wxpay_cookie'})),
    url(r'^level/$', views_users.LevelModelViewSet.as_view({'get': 'list'})),
    url(r'^level/(?P<pk>\d+)/$', views_users.LevelModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_level/$', views_users.LevelModelViewSet.as_view({'get': 'export_level'})),
    url(r'^customeruser/$', views_users.CustomerUserModelViewSet.as_view({'get': 'list'})),
    url(r'^customeruser/(?P<pk>\d+)/$', views_users.CustomerUserModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customeruser_point_record/$', views_users.CustomerUserModelViewSet.as_view({'get': 'customeruser_point_record'})),
    url(r'^export_customeruser/$', views_users.CustomerUserModelViewSet.as_view({'get': 'export_customeruser'})),
    url(r'^manageruser/$', views_users.ManagerUserModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^manageruser/(?P<pk>\d+)/$', views_users.ManagerUserModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_manageruser/$', views_users.ManagerUserModelViewSet.as_view({'get': 'export_manageruser'})),
    url(r'^customeruservice/$', views_users.CustomerUserViceModelViewSet.as_view({'get': 'list'})),
    url(r'^customeruservice/(?P<pk>\d+)/$', views_users.CustomerUserViceModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customeruservice_order/$', views_users.CustomerUserViceModelViewSet.as_view({'get': 'customeruservice_order'})),
    url(r'^customeruservice_order_map/$', views_users.CustomerUserViceModelViewSet.as_view({'get': 'customeruservice_order_map'})),
    url(r'^customeruserviceinviterrecord/$', views_users.CustomerUserViceInviterRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^joincustomizeactivity/$', views_users.JoinCustomizeActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^joincustomizeactivity/(?P<pk>\d+)/$', views_users.JoinCustomizeActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_joincustomizeactivity/$', views_users.JoinCustomizeActivityModelViewSet.as_view({'get': 'export_joincustomizeactivity'})),
    url(r'^bindcardorder/$', views_users.BindCardOrderModelViewSet.as_view({'get': 'list'})),
    url(r'^bindcardorder/(?P<pk>\d+)/$', views_users.BindCardOrderModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_bindcardorder/$', views_users.BindCardOrderModelViewSet.as_view({'get': 'export_bindcardorder'})),
    url(r'^export_loanuserinfo/$', views_users.SpeedLoanUserInfoModelViewSet.as_view({'get': 'export_loanuserinfo'})),

    # 代金券模块
    url(r'^alidiscountcoupon/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^alidiscountcoupon/(?P<pk>\d+)/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    #支付宝 微信 美团 商家券-客管推送记录
    url(r'^alidiscountdatakeguan/$', views_vouchers.AliCouponDataKeguanModelViewSet.as_view({'get': 'list'})),
    url(r'^check_template/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'check_template'})),
    url(r'^update_white_table/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'update_white_table'})),
    url(r'^export_activity_merchant/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'export_activity_merchant'})),
    url(r'^white_table/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'white_table'})),
    url(r'^update_merchant/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'update_merchant'})),
    url(r'^allocation_level/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'allocation_level'})),
    url(r'^sync_use_merchant/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'sync_use_merchant'})),
    url(r'^allocation_max_number/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'allocation_max_number'})),
    url(r'^bind_developer/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'bind_developer'})),
    url(r'^unbind_developer/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'unbind_developer'})),
    url(r'^sync_wyh_data/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'sync_wyh_data'})),
    url(r'^export_activity/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'get': 'export_activity'})),
    url(r'^add_coupon_goods/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'add_coupon_goods'})),
    url(r'^coupon_goods/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'coupon_goods'})),
    url(r'^submit_ysh/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'submit_ysh'})),
    url(r'^add_stock_mchid/$', views_vouchers.AliDiscountCouponModelViewSet.as_view({'post': 'add_stock_mchid'})),
    url(r'^alidiscountcouponlevel/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponlevel/(?P<pk>\d+)/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    url(r'^alidiscountcouponlevel_tree/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'get': 'alidiscountcouponlevel_tree'})),
    url(r'^export_couponlevel/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'get': 'export_couponlevel'})),
    url(r'^transfer_max_number/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'post': 'transfer_max_number'})),
    url(r'^batch_update_max_number/$', views_vouchers.AliDiscountCouponLevelModelViewSet.as_view({'post': 'batch_update_max_number'})),
    url(r'^stock_merchanttable/$', views_vouchers.AliDiscountCouponMerchantTableModelViewSet.as_view({'get': 'list'})),
    url(r'^stock_merchanttable/(?P<pk>\d+)/$', views_vouchers.AliDiscountCouponMerchantTableModelViewSet.as_view({'delete': 'destroy'})),
    url(r'^clear_stock_merchanttable/$', views_vouchers.AliDiscountCouponMerchantTableModelViewSet.as_view({'post': 'clear_stock_merchanttable'})),
    url(r'^stock_merchanttable_history/$', views_vouchers.AliDiscountCouponMerchantTableHistoryModelViewSet.as_view({'post': 'create', 'get': 'list'})),
    url(r'^stock_blacktable/$', views_vouchers.BlackTableModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^stock_blacktable/(?P<pk>\d+)/$', views_vouchers.BlackTableModelViewSet.as_view({'delete': 'destroy'})),
    url(r'^blacktable/(?P<pk>\d+)/$', views_vouchers.BlackTableModelViewSet.as_view({'delete': 'destroy'})),
    url(r'^blacktable/$', views_vouchers.BlackTableModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^coupongoodsavailable/$', views_vouchers.AliDiscountCouponGoodsAvailableModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponsyncwthrecord/$', views_vouchers.AliDiscountCouponSyncWYHRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^distributionplatform/$', views_vouchers.AliDiscountCouponDistributionPlatformModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivityflipcards/$', views_vouchers.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivityflipcards/(?P<pk>\d+)/$', views_vouchers.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_customizeactivityflipcards/$', views_vouchers.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'export_customizeactivityflipcards'})),
    url(r'^stockusablemerchant/$', views_vouchers.UpdateStockUsableMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^stockusablemerchant/(?P<pk>\d+)/$', views_vouchers.UpdateStockUsableMerchantModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^alidiscountcouponinfo/$', views_vouchers.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/(?P<pk>\d+)/$', views_vouchers.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_discountinfo/$', views_vouchers.AliDiscountCouponInfoModelViewSet.as_view({'get': 'export_discountinfo'})),
    url(r'^alidiscountcouponmerchant/$', views_vouchers.AliDiscountCouponMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^customize_activity/$', views_vouchers.CustomizeActivityModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    # 鼓励金模块
    #客管记录
    url(r'^encouragedatakeguan/$', views_encourage.EncourageDataKeguanModelViewSet.as_view({'get': 'list'})),

    url(r'^allocation_customize/$', views_vouchers.CustomizeActivityModelViewSet.as_view({'post': 'allocation_customize'})),
    url(r'^allocation_customize_level/$', views_vouchers.CustomizeActivityModelViewSet.as_view({'get': 'allocation_customize_level'})),
    url(r'^update_customize_white_table/$', views_vouchers.CustomizeActivityModelViewSet.as_view({'post': 'update_customize_white_table'})),
    url(r'^customize_white_table/$', views_vouchers.CustomizeActivityModelViewSet.as_view({'get': 'customize_white_table'})),
    url(r'^customize_activity_rules/$', views_vouchers.CustomizeActivityRulesModelViewSet.as_view({'get': 'list'})),
    url(r'^customize_activity_level/$', views_vouchers.CustomizeActivityLevelModelViewSet.as_view({'get': 'list'})),

    # 商品模块
    url(r'^goodstagactivity/$', views_goods.GoodsTagActivityModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^goodstagactivity/(?P<pk>\d+)/$', views_goods.GoodsTagActivityModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^goods_tag_allocation_level/$', views_goods.GoodsTagActivityModelViewSet.as_view({'get': 'goods_tag_allocation_level'})),
    url(r'^goods_tag_allocation/$', views_goods.GoodsTagActivityModelViewSet.as_view({'post': 'goods_tag_allocation'})),
    url(r'^goodstagactivitylevelrelation/$', views_goods.GoodsTagActivityLevelRelationModelViewSet.as_view({'get': 'list'})),
    url(r'^goodstagactivitylevelrelation/(?P<pk>\d+)/$', views_goods.GoodsTagActivityLevelRelationModelViewSet.as_view({'delete': 'destroy'})),
    url(r'^goods/$', views_goods.GoodsModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^goods/(?P<pk>\d+)/$', views_goods.GoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^export_goods/$', views_goods.GoodsModelViewSet.as_view({'get': 'export_goods'})),
    url(r'^applyment/$', views_goods.GoodsModelViewSet.as_view({'post': 'applyment'})),
    url(r'^upload_image/$', views_goods.GoodsModelViewSet.as_view({'post': 'upload_image'})),
    url(r'^pinned/$', views_goods.GoodsModelViewSet.as_view({'post': 'pinned'})),
    url(r'^batch_update_goods_stock/$', views_goods.GoodsModelViewSet.as_view({'post': 'batch_update_goods_stock'})),
    url(r'^batch_unbind_goods_tag/$', views_goods.GoodsModelViewSet.as_view({'post': 'batch_unbind_goods_tag'})),
    url(r'^launchedgoods/$', views_goods.LaunchedGoodsModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^launchedgoods/(?P<pk>\d+)/$', views_goods.LaunchedGoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^category/$', views_goods.GoodsCategoryModelViewSet.as_view({'get': 'list'})),

    # 红包模块
    url(r'^cashactivity/$', views_cashbonus.CashActivityModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^cashactivity/(?P<pk>\d+)/$', views_cashbonus.CashActivityModelViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update', 'post': 'create', 'put': 'update'})),
    url(r'^allocation_max_amount/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'allocation_max_amount'})),
    url(r'^allocation_max_amount_level/$', views_cashbonus.CashActivityModelViewSet.as_view({'get': 'allocation_max_amount_level'})),
    url(r'^cashactivity_bind_developer/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'cashactivity_bind_developer'})),
    url(r'^cashactivity_unbind_developer/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'cashactivity_unbind_developer'})),
    url(r'^update_cashactivity_white_table/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'update_cashactivity_white_table'})),
    url(r'^cashactivity_white_table/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'cashactivity_white_table'})),
    url(r'^clear_cashactivity_white_table/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'clear_cashactivity_white_table'})),
    url(r'^add_cashactivity_white_table/$', views_cashbonus.CashActivityModelViewSet.as_view({'post': 'add_cashactivity_white_table'})),
    url(r'^cashactivitywhitetable/$', views_cashbonus.CashActivityWhiteTableModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitywhitetable/(?P<pk>\d+)/$', views_cashbonus.CashActivityWhiteTableModelViewSet.as_view({'delete': 'destroy'})),
    url(r'^export_cashactivitywhitetable/$', views_cashbonus.CashActivityWhiteTableModelViewSet.as_view({'get': 'export_cashactivitywhitetable'})),
    url(r'^cashactivitylevel/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitylevel/(?P<pk>\d+)/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    url(r'^export_cashactivitylevel/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'export_cashactivitylevel'})),
    url(r'^cashactivitylevel_tree/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'cashactivitylevel_tree'})),
    url(r'^cashactivitylevel_tree1/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'cashactivitylevel_tree1'})),
    url(r'^cash_distributed_statistical/$', views_cashbonus.CashActivityLevelModelViewSet.as_view({'get': 'cash_distributed_statistical'})),
    url(r'^cashactivitydata/$', views_cashbonus.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/(?P<pk>\d+)/$', views_cashbonus.CashActivityDataModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^export_cashactivitydata/$', views_cashbonus.CashActivityDataModelViewSet.as_view({'get': 'export_cashactivitydata'})),
    url(r'^cashactivitydatakeguan/$', views_cashbonus.CashActivityDataKeguanModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitylevelrecord/$', views_cashbonus.CashActivityLevelRecordModelViewSet.as_view({'get': 'list'})),

    # 邮米模块
    url(r'^activity_data/$', views_activities.ActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^activity_data/(?P<pk>\d+)/$', views_activities.ActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^activity/$', views_activities.ActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^platform/$', views_activities.ChannelModelViewSet.as_view({'get': 'list'})),
    url(r'^hand_movement/$', views_activities.ChannelModelViewSet.as_view({'get': 'hand_movement'})),
    url(r'^ruiyinxin/$', views_activities.ChannelModelViewSet.as_view({'post': 'ruiyinxin'})),

]